$execute store result storage dab:system temp.sonic_boom.damage float 0.5 run attribute @n[nbt={UUID:$(victim)}] max_health get
$data modify storage dab:system temp.sonic_boom.victim set value $(victim)
$data modify storage dab:system temp.sonic_boom.attacker set value $(attacker)

function dab:system/bow_arrow/sculk_bow/sonic_boom_damage with storage dab:system temp.sonic_boom
data remove storage dab:system temp.sonic_boom